package com.system.common.bean;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("seckillresult")
public class SeckillResult implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id; // 秒杀结果ID

    private Integer userid;     // 用户ID
    private Integer seckillid;  // 秒杀商品ID
    private Integer goodsid;    // 普通商品ID
    private Integer orderid;    // 订单ID

    private BigDecimal seckillprice; // 秒杀价格

    private Integer status; // 秒杀状态：0-未抢到，1-抢到成功，2-已支付
    private Integer activityid;  // 秒杀活动ID
    private Date createtime;
    private Date updatetime;

    @TableLogic
    private Integer isdel; // 逻辑删除
}
